﻿using DAL.Mongo.Interface;
using System.Configuration;
using MongoDB.Driver;

namespace DAL.Mongo.Configuration
{
    public class AppConfiguration : IConfiguration
    {
        public virtual string DefaultConnectionString
        {
            get { return Get("DefaultConnectionString"); }
        }

        public virtual string DefaultDatabaseName
        {
            get { return Get("DefaultDatabaseName"); }
        }

        public virtual IMongoCollectionOptions Options
        {
            get { return null; }
        }

        protected string Get(string key)
        {
            return ConfigurationManager.AppSettings[key];
        }
    }
}
